package com.jzo2o.customer.controller.agency;


import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.service.IAgencyCertificationAuditService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 机构认证审核表 前端控制器
 * </p>
 *
 * @author wei
 * @since 2025-01-18
 */

@Api(tags = "机构端 - 提交认证")
@RestController("agencyAgencyCertificationAuditController")
@RequestMapping("/agency/agency-certification-audit")
public class AgencyCertificationAuditController {
    @Autowired
    private IAgencyCertificationAuditService agencyCertificationAuditService;
    @PostMapping
    public void certificationAudit(@RequestBody AgencyCertificationAuditAddReqDTO reqDTO) {
        // TODO
        agencyCertificationAuditService.certificationAudit(reqDTO);
    }

    @GetMapping("/rejectReason")
    public String rejectReason () {
        return agencyCertificationAuditService.rejectReason ();
    }

}
